<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
<h:body>
<h:form>
<h1 align="center">Add Employee</h1>
﻿  ﻿  <h:message for="EmployeeId" style="color:red ;margin:8px;"></h:message><br />
﻿  ﻿  <h:message for="EmployeeName" style="color:red ;margin:8px;"></h:message><br />
﻿    <h:message for="EmployeeUserId" style="color:red ;margin:8px;"></h:message><br />
﻿    <h:message for="EmployeePassword" style="color:red ;margin:8px;"></h:message><br />
    <h:message for="emailId" style="color:red ;margin:8px;"></h:message><br />
    <h:message for="EmployeeContactNumber" style="color:red ;margin:8px;"></h:message><br />
    <h:message for="EmployeeType" style="color:red ;margin:8px;"></h:message><br />
﻿  ﻿  <br />
﻿  ﻿  <br />
﻿  ﻿  <table align="center">
﻿  ﻿  ﻿  <tr>
﻿  ﻿  ﻿  ﻿  <td>EmployeeId</td>
﻿  ﻿  ﻿  ﻿  <td><h:inputText id="employeeId" required="true" value="#{employeeBean.employeeId}" label="Employee Id" requiredMessage="Employee Id is required !!"></h:inputText>
﻿  ﻿  ﻿  ﻿  ﻿  </td>
﻿  ﻿  ﻿  </tr>
﻿  ﻿  ﻿  <tr>
﻿  ﻿  ﻿  ﻿  <td>EmployeeName</td>
﻿  ﻿  ﻿  ﻿  <td><h:inputText id="employeeName" value="#{employeeBean.employeeName}" label="Employee Name" ></h:inputText>
﻿  ﻿  ﻿  ﻿  ﻿  </td>
﻿  ﻿  ﻿  </tr>
      <tr>
﻿  ﻿  ﻿  ﻿  <td>Employee UserId</td>
﻿  ﻿  ﻿  ﻿  <td><h:inputText id="employeeUserId" value="#{employeeBean.employeeUserId}" label="Employee UserId" ></h:inputText>
﻿  ﻿  ﻿  ﻿  ﻿  </td>
﻿  ﻿  ﻿  </tr>
       <tr>
﻿  ﻿  ﻿  ﻿  <td>Employee UserId</td>
﻿  ﻿  ﻿  ﻿  <td><h:inputText id="employeePassword" value="#{employeeBean.employeePassword}" label="Employee UserId" ></h:inputText>
﻿  ﻿  ﻿  ﻿  ﻿  </td>
﻿  ﻿  ﻿  </tr>
 <tr>
﻿  ﻿  ﻿  ﻿  <td>Employee Email</td>
﻿  ﻿  ﻿  ﻿  <td><h:inputText id="employeeEmailId" value="#{employeeBean.employeeEmailId}" label="employeeEmailId" ></h:inputText>
﻿  ﻿  ﻿  ﻿  ﻿  </td>
﻿  ﻿  ﻿  </tr>
 <tr>
﻿  ﻿  ﻿  ﻿  <td>Employee Contact Number</td>
﻿  ﻿  ﻿  ﻿  <td><h:inputText id="employeeContactNumber" value="#{employeeBean.employeeContactNumber}" label="employeeContactNumber" ></h:inputText>
﻿  ﻿  ﻿  ﻿  ﻿  </td>
﻿  ﻿  ﻿  </tr>
 <tr>
﻿  ﻿  ﻿  ﻿  <td>Employee Type</td>
﻿  ﻿  ﻿  ﻿  <td><h:inputText id="employeeType" value="#{employeeBean.employeeType}" label="Employee Type" ></h:inputText>
﻿  ﻿  ﻿  ﻿  ﻿  </td>
﻿  ﻿  ﻿  </tr>
      
﻿  ﻿  ﻿  <tr><td></td><td><h:commandButton value="Submit" action="#{employeeBean.addEmployee}" id="submitButton" /> &nbsp;&nbsp;<h:commandButton value="Clear" id="clearButton" action="#{country.clear}" /></td>
﻿  ﻿  ﻿  </tr>
﻿  ﻿  </table>
</h:form>
</h:body>
</html>
